#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<queue>

using namespace std;

template<class T>
class Myless
{
public:
	bool operator()(const T& x,const T& y)
	{
		return x < y;
	}
};

//template<class T>
//bool _Myless<T*>(T x , T y)
//{
//
//}

template<class T>
class Myless<T*>
{
public:
	bool operator()(T* const x, T* const y)
	{
		return *x < *y;
	}
};


int main()
{
	int* a = new int(1);
	int* b = new int(2);
	Myless<int*> myless;
	cout << myless(a,b);
	return 0;
}


